/*
 * @Author: HeAo
 * @Date: 2021-12-27 17:10:17
 * @LastEditTime: 2021-12-27 17:19:03
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day02\11-函数.js
 * 别乱动！
 */
// 1.函数的声明
let myfun1 = function (a, b, c) {
  console.log(a, b, c);
  console.log('hello world');
}
function myfun2 () {
  console.log('i am fun2');
}
// 2.函数的调用
// myfun1(1, 2, 3)
// myfun2()

let obj = {
  name: 'zhangsan',
  age: 12,
  sayName: function () {
    console.log(this.name);
  }
}
  ; (function muFun2 () {
    console.log(this);
  })()
// 普通函数里，this指向调用者
// obj.sayName()